package com.pptree.vo;

import java.io.Serializable;
import java.sql.Timestamp;

public class News implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private int id;  //PK
	private int tid;  //FK
	private String title;
	private String summary;
	private String content;
	private String author;
	private Timestamp createdate;
	private String picpath;
	private Timestamp modifydate;
	
	
	
	public News() {
		
	}
	
	

	/**
	 * @param tid
	 * @param title
	 * @param summary
	 * @param content
	 * @param author
	 * @param createdate
	 * @param picpath
	 * @param modifydate
	 */
	public News(int tid, String title, String summary, String content, String author, Timestamp createdate,
			String picpath, Timestamp modifydate) {
		this.tid = tid;
		this.title = title;
		this.summary = summary;
		this.content = content;
		this.author = author;
		this.createdate = createdate;
		this.picpath = picpath;
		this.modifydate = modifydate;
	}

	
	


	/**
	 * @param id
	 * @param tid
	 * @param title
	 * @param summary
	 * @param content
	 * @param author
	 * @param createdate
	 * @param picpath
	 * @param modifydate
	 */
	public News(int id, int tid, String title, String summary, String content, String author, Timestamp createdate,
			String picpath, Timestamp modifydate) {
		this(tid, title, summary, content, author, createdate, picpath, modifydate);
		this.id = id;
		
	}



	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getTid() {
		return tid;
	}

	public void setTid(int tid) {
		this.tid = tid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Timestamp getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Timestamp createdate) {
		this.createdate = createdate;
	}

	public String getPicpath() {
		return picpath;
	}

	public void setPicpath(String picpath) {
		this.picpath = picpath;
	}

	public Timestamp getModifydate() {
		return modifydate;
	}

	public void setModifydate(Timestamp modifydate) {
		this.modifydate = modifydate;
	}
	
	
}
